<?php
namespace app\api\model;
use think\Model;
use think\Db;
class Advice extends Model{
    protected $autoWriteTimestamp = false;
    public function post($data){
        $id=$this->save($data);
        if($id){
            return 1;
        }else{
            return 0;
        }
    }
    //投诉列表
    public function selectlists(){
       $res= Db::name('advice')->select();
       return $res;
    }
}